﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="EnhancedDropDowns.aspx.cs" Inherits="EwcControlTest.EnhancedDropDowns" %>
<%@ Register Assembly="EnhancedWebControls" Namespace="EnhancedWebControls" TagPrefix="ewc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="HeaderSection">
        Enhanced Drop Downs
    </div>
    <div class="MessageSection">
        The drop downs controls below are testing various types of functionality. All the drop down controls are using default styles unless otherwise noted.
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
        <ContentTemplate>
            <div class="Section">
                <ewc:EnhancedDropDown id="EnhancedDropDown1" runat="server" LabelText="Label Mode:" LabelWidth="200px" FieldWidth="220px" LabelMode="true"></ewc:EnhancedDropDown>
                <ewc:EnhancedDropDown id="EnhancedDropDown2" runat="server" LabelText="Error Mode:" LabelWidth="200px" FieldWidth="220px" ErrorMode="true"></ewc:EnhancedDropDown>
                <ewc:EnhancedDropDown id="EnhancedDropDown5" runat="server" LabelText="ListItem binding:" LabelWidth="200px" FieldWidth="220px" ErrorMode="false">
                    <asp:ListItem Text="Item 1" Value="1"></asp:ListItem>
                    <asp:ListItem Text="Item 2" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Item 3" Value="3"></asp:ListItem>
                </ewc:EnhancedDropDown>
                <ewc:EnhancedDropDown id="EnhancedDropDown4" runat="server" LabelText="Default Row:" LabelWidth="200px" FieldWidth="220px" DefaultRowText="Select A State..." DefaultRowValue="0" ></ewc:EnhancedDropDown>
                <div style="float:left;clear:both;width:960px">
                    <ewc:EnhancedDropDown id="EnhancedDropDown3" runat="server" LabelText="AutoPostBack:" LabelWidth="200px" FieldWidth="220px" AutoPostBack="true" style="clear:none;" OnSelectedIndexChanged="SelectedIndexChanged"></ewc:EnhancedDropDown>
                    <asp:Label ID="lblResults1" runat="server" cssclass="TestResults" Visible="false"></asp:Label>                
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="ReverseMessageSection">
        <div class="HeaderSection">
            Other Benefits...
        </div>
        <div style="float:left;clear:both;width:960px">
            <ul>
                <li><b>SelectedValue Enhancements</b> - No more "Selected Value Not Found in List" Errors! The SelectedValue you set will be tried before and after binding data. If it is not found it is quietly discarded.</li>
                <li><b>Return Focus on Async Post Backs</b> - Focus will automatically be returned to a drop down list when it is auto posting back within an update panel</li>
                <li><b>Support for Default Rows</b> - You can easily add a default row without having to include it in your DataSource using the DefaultRowText and DefaultRowValue properties or Use the SetDefault Row method</li>
            </ul>        
        </div>
    </div>
</asp:Content>
